/**
 * action：用于编写方法
 */
import {INCREMENT,DECREMENT} from '../constant';

export const createIncrement = (data) => ({type: INCREMENT, data})
export const createDecrement = (data) => ({type: DECREMENT, data})
export const createAsyncIncrement = (data) => {
  return () => {
    setTimeout(() => {
      return createIncrement(data)
    }, 500)
  }
}
